<ion-view view-title="我承接的任务">
	<ion-content class="page">
		<div class="list">
			<div ng-repeat="item in groups">
				<ion-item class="item-stable item-icon-left" ng-click="toggleGroup(item)" ng-class="{active: isGroupShown(item)}">
					<i class="icon" ng-class="isGroupShown(item) ? 'ion-minus' : 'ion-plus'"></i>
					&nbsp;{{item.label}}
					<span class="badge badge-assertive">{{item.num}}</span>
				</ion-item>
				<div class="list">
					<div ng-repeat="vo in item.list">
						<ion-item class="item item-thumbnail-left"  ng-show="isGroupShown(item)" ng-click="toggleGroup(vo)">
							<img src="http://placeholder.cn/80x80">
							<div class="row" ng-if="item.type=='waitingMe'">
								<div class="col-80">
									<h2 style="display:block;float: left;">{{vo.property}}</h2>
									<h2 style="display:block;float: right; padding-right:15px;">{{vo.category}}</h2>
									<br>
									<h2 style="display:block;float: left;">{{vo.name}}</h2>
									<h2 style="display:block;float: right; padding-right:15px;">{{vo.mobile}}</h2>
									<br>
									<p>{{vo.explain}}</p>
								</div>
								<div class="col-20">
									<button class="button button-balanced button-small" style="float: right" ng-if="item.type=='waitingMe'" ng-click="affirm(item.tid, v.uid)">拒绝</button>
								</div>
							</div>
							<div class="row"  ng-if="item.type!='waitingMe'">
								<div class="col">
									<h2 style="display:block;float: left;">{{vo.property}}</h2>
									<h2 style="display:block;float: right; padding-right:15px;">{{vo.category}}</h2>
									<br>
									<p>{{vo.category}}</p>
								</div>
							</div>
						</ion-item>
					</div>
				</div>
			</div>
		</div>
	</ion-content>
</ion-view>
